package com.yjd.comm.settlement.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.settlement.model.ClearDayPfModel;

/**
 * <b>description</b>：平台订单日结汇总业务接口<br>
 * <b>time</b>：2017-08-11 17:28:51 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IClearDayPfService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public ClearDayPfModel insert(ClearDayPfModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(ClearDayPfModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;

	/**
	 * 生成平台日结算数据
	 * @param clearDate
	 * @param clearDate
	 * @throws Exception
	 */
	public void generatePfClearDayData(Integer clearDate,Long currtime)throws Exception;

	/**
	 * 生成平台日结算数据 (根据时间区间来)
	 * @param startDate
	 * @param endDate
	 * @param currtime
	 * @throws Exception
	 */
	public void generatePfClearDayData(Integer startDate,Integer endDate,Long currtime)throws Exception;
}
